from logging import getLogger
from logging import config
from blog import settings


# 加载日志字典，并拿到日志对象
config.dictConfig(settings.LOGGING_DIC)
log = getLogger('blog')